package T3;

public class OnlinePackages extends AbstractPackage implements OlineService{

    private double flow;

    private double money;

    public OnlinePackages(double flow, double money) {
        this.flow = flow;
        this.money = money;
    }

    public OnlinePackages() {
    }

    public void show(){
        System.out.println("流量："+flow+"，"+"话费："+money);
    }

    public void onlineService(double flow, Card card) {
        System.out.println("上网服务: 流量 "+flow+"手机卡类型 "+card.getCardkind());
    }

    public double getFlow() {
        return flow;
    }

    public void setFlow(double flow) {
        this.flow = flow;
    }

    @Override
    public double getMoney() {
        return money;
    }

    @Override
    public void setMoney(double money) {
        this.money = money;
    }
}
